<template>
  <div class="announcement">
    <div class="announcement-list" v-for="(item, index) in list" :key="index">
      <div class="announcement-title">
        <div class="announcement-title-name font-size-20 text-color-5">
          {{ item.title }}
        </div>
        <div class="announcement-title-time text-color-3">
          {{ item.publish_time }}
        </div>
      </div>
      <div class="announcement-content">
        <div class="announcement-content-name multi-line">
          {{ item.content }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'announcement',
  components: {},
  props: {
    list: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
  mounted() {},
};
</script>

<style scoped lang="less">
.announcement {
  display: flex;
  flex-direction: column;

  .announcement-list {
    border-bottom: 1px dashed #999;
    padding-bottom: 20px;
  }

  .announcement-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;

    .announcement-title-name {
      font-weight: 700;
    }
    .announcement-title-time {
    }
  }
}
</style>
